<template>
  <!-- 客户列表 -->
  <view>
    <uni-navbar :title="'客户列表'"></uni-navbar>
    <div class="cust-one">
      <div>
        <div>
          <image src="../../../static/application/sousuo.png" mode=""></image>
          <input type="text" placeholder="搜索用户手机号">
        </div>
        <span>搜索</span>
      </div>
      <div>
        <image src="../../../static/application/qici/shaixuan.png" mode=""></image>
        <span>筛选</span>
      </div>
    </div>
    <div class="cust-two">
      <div class="custtwo" v-for="(item,index) in list" :key="index">
        <div class="custwo-one">
          <h3>{{item.name}}</h3>
          <span>{{item.text}}</span>
        </div>
        <div class="custwo-two">
          <view @click="custo">用户详细</view>
          <span>来源：{{item.from}}</span>
        </div>
      </div>
    </div>
  </view>
</template>

<script>
  export default {
    data() {
      return {
        list:[
          {
            name:'李四13773960829',
            text:'已成交',
            from:'二次录入'
          },
          {
            name:'李四13773960829',
            text:'已成交',
            from:'二次录入'
          },
          {
            name:'李四13773960829',
            text:'已成交',
            from:'二次录入'
          }
        ]
      };
    },
    methods:{
      custo(){
        uni.navigateTo({
          url:'/pages/applications/mine-cust-Intended/mine-cust-Intended'
        })
      }
    }
  }
</script>

<style lang="scss">
.cust-one{
  padding: 19rpx 30rpx;
  background-color: #fff;
  display: flex;
  align-items: center;
  div:nth-child(1){
    display: flex;
    align-items: center;
    div{
      width: 496rpx;
      height: 46rpx;
      background-color:#F2F2F2 ;
      border-radius: 23rpx;
      display: flex;
      align-items: center;
      image{
        padding: 16rpx;
        width: 24rpx;
        height: 24rpx;
      }
      input{
        font-size: 24rpx;
        display: inline-block;
      }
    }
    span{
      margin-left: 15rpx;
      font-size: 26rpx;
      font-weight: 400;
      color: #4D4D4D;
    }
  }
  div:nth-child(2){
    margin-left: 30rpx;
    image{
      width: 28rpx;
      height: 26rpx;
      vertical-align: middle;
    }
    span{
      margin-left: 10rpx;
      font-size: 26rpx;
      font-weight: 400;
      color: #999999;;
    }
  }
}
.cust-two{
  margin-top: 20rpx;
  .custtwo{
    background-color: #fff;
    display: flex;
    justify-content: space-between;
    border-bottom: 1rpx solid #eee;
    padding: 30rpx;
    .custwo-one{
      h3{
        font-size: 26rpx;
        font-weight: 500;
        color: #4D4D4D;
      }
      span{
        margin-top: 30rpx;
        display: inline-block;
       width: 79rpx;
       height: 30rpx;
       background: #CDE7FE;
       border-radius: 8rpx; 
       font-size: 18rpx;
       font-weight: 400;
       color: #0287FE;
       line-height: 30rpx;
       text-align: center;
      }
    }
    .custwo-two{
      view{
        width: 125rpx;
        height: 49rpx;
        background: #FF7B2E;
        border-radius: 8rpx;
        font-size: 24rpx;
        font-weight: 400;
        color: #FFFFFF;
        line-height: 49rpx;
        text-align: center;
        margin-bottom: 15rpx;
      }
      span{
        font-size: 18rpx;
        font-weight: 400;
        color: #4D4D4D;
      }
    }
  }
}
</style>
